//
//  UITextField+UILeftView.m
//  NewProject
//
//  Created by 钱金军 on 2018/8/16.
//  Copyright © 2018年 钱金军. All rights reserved.
//

#import "UITextField+UILeftView.h"
#import "FilesHeader.h"

@implementation UITextField (UILeftView)

- (void)drawTextFieldLeftView:(UITextField *)textField{
    UIView *rightView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 10, textField.height)];//宽度根据需求进行设置，高度必须大于 textField 的高度
    rightView.backgroundColor = [UIColor clearColor];
    //设置左侧视图的显示模式
    textField.leftViewMode = UITextFieldViewModeAlways;
    textField.leftView = rightView;
    
}

@end
